﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Linq;

namespace KTX
{
    public partial class frmTimKiemSinhvien : DevExpress.XtraEditors.XtraForm
    {
        public frmTimKiemSinhvien()
        {
            InitializeComponent();
        }
        Data.QLKTXEntities db = new Data.QLKTXEntities();
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            if (textEdit1.EditValue!=null)
            {
                var t = textEdit1.EditValue.ToString();
                sinhVienBindingSource.DataSource = db.SinhVien.Where(p => p.HoTen.Contains(t) || p.MaSV.Contains(t));
            }
        }
    }
}